package com.mjk.common.core.jdbc.service.parse.type.impl.sql.type;


import com.mjk.common.tools.logger.BizLogger;
import org.apache.ibatis.scripting.xmltags.OgnlCache;

import java.util.Map;

public interface IBeeSqlPrase {
	
	String praseSql(String sql,Map<String,Object> params);
	
    default boolean isMatch(String expression,Map<String,Object> params) {
    	try {
            return OgnlCache.getValue(expression, params).equals(true);
        }catch(Exception e) {
    		BizLogger.error(e);
    		return false;
    	}
    }
}
